﻿
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DaYinZDTD.aspx.cs" Inherits="Web.Pages.QuShui.DaYinZDTD" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../JS/jquery.js"></script>
    <script src="../../../../JS/AddEditCancel.js"></script>
    <style type="text/css">
        .wtd {
            width:0.1%;
            white-space:nowrap;
        }
    </style>
    <script type="text/javascript">
        function goto1()
        {
            if (tab1YongHuH1.GetText()=="")
            {
                return;
            }
            ASPxCallback1.PerformCallback("goto1");
        }
        function goto2() {
            if (tab2YongHuH1.GetText() == "") {
                return;
            }
            ASPxCallback1.PerformCallback("goto2");
        }
        function ASPxCallback1Complete(rs) {
            var arr = rs.split('|');
            var type = arr[0];
            var state = arr[1];
            var specialIdentity = arr[2];
            var msg = arr[3].split('-');
            if (msg[0] == 'True') {
                alert(msg[1]);
            }
            hdCollection.Set("type", type);
            if (state == 'True') {
                if (type == "goto1") {
                    gvList1.SetFocusedRowIndex(specialIdentity);
                    gvList1.MakeRowVisible(specialIdentity);
                }
                else if (type == "goto2") {
                    gvList2.SetFocusedRowIndex(specialIdentity);
                    gvList2.MakeRowVisible(specialIdentity);
                }
            }
            else {
                
            }
        }
    </script>
    
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            打印一般汇缴书、补收
        </div>
        <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
        <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
        <dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" ClientInstanceName="loadpanel1" runat="server" ContainerElementID="gvList" Modal="true" Theme="Metropolis" ShowImage="false" Text="加载中"></dx:ASPxLoadingPanel>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
          <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" Width="98%" Height="535px">
                    <TabPages>
                        <dx:TabPage Text="一般缴款书">
                            <ContentCollection>
                                <dx:ContentControl>
                                    <div style="float:left;width:34%">
                                        <div style="height:20px"></div>
                                        <table style="width:100%">
                                            <tr>
                                                <td class="wtd">&nbsp;&nbsp;水量年月：</td>
                                                <td style="width:30%">
                                                    <dx:ASPxTextBox ID="txtYM" runat="server" Width="99%" Text="">
                                                         <ClientSideEvents KeyUp="function(s,e){inputNum(s);OnKeyNext(btnSearch);}"/>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td>
                                                    &nbsp;<dx:ASPxButton ID="btnSearch" ClientInstanceName="btnSearch" runat="server" Width="70" Text="查询"  OnClick="btnSearch_Click" UseSubmitBehavior="false"></dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <div style="height:40px"></div>
                                        <fieldset>
                                            <legend>选中打印</legend>
                                            <table style="width:100%">
                                                <tr>
                                                    <td style="padding-left:10px"><dx:ASPxRadioButton ID="ASPxRadioButton6" runat="server" Text="选" GroupName="cb1"></dx:ASPxRadioButton>
                                                    </td>
                                                    <td>
                                                         <dx:ASPxTextBox ID="ASPxTextBox7" runat="server" Width="99%" ></dx:ASPxTextBox>
                                                    </td>
                                                    <td colspan="3">
                                                        &nbsp;到最后
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width:30px;padding-left:10px"><dx:ASPxRadioButton ID="ASPxRadioButton7" runat="server" Text="从" GroupName="cb1"></dx:ASPxRadioButton>
                                                    </td>
                                                    <td>
                                                         <dx:ASPxTextBox ID="ASPxTextBox8" runat="server" Width="99%" ></dx:ASPxTextBox>
                                                    </td>
                                                    <td class="wtd">
                                                        &nbsp;选&nbsp;
                                                    </td>
                                                    <td style="width:70px">
                                                        <dx:ASPxTextBox ID="ASPxTextBox9" runat="server" Width="99%" ></dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        张
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5">
                                                        <table style="width:100%">
                                                            <tr>
                                                                <td style="width:33%;text-align:center"><dx:ASPxButton ID="ASPxButton11" runat="server" Width="96%" Text="全部选中" UseSubmitBehavior="false"></dx:ASPxButton></td>
                                                                <td style="width:33%;text-align:center"><dx:ASPxButton ID="ASPxButton12" runat="server" Width="96%" Text="全部取消" UseSubmitBehavior="false"></dx:ASPxButton></td>
                                                                <td style="text-align:center"><dx:ASPxButton ID="ASPxButton13" runat="server" Width="96%" Text="条件选中" UseSubmitBehavior="false"></dx:ASPxButton></td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                        <div style="height:40px"></div>
                                        <table style="width:100%">
                                            <tr>
                                                <td style="width:66%;text-align:center"><dx:ASPxButton ID="ASPxButton14" runat="server" Width="96%" Text="打印一般缴款书" UseSubmitBehavior="false"></dx:ASPxButton></td>
                                                <td style="text-align:center"><dx:ASPxButton ID="ASPxButton15" runat="server" Width="96%" Text="预览" UseSubmitBehavior="false"></dx:ASPxButton></td>
                                            </tr>
                                            <tr style="height:5px"><td colspan="2"></td></tr>
                                        </table>
                                    </div>
                                    <div style="float:left;width:2%">&nbsp;</div>
                                    <div style="float:left;width:64%">
                                        <div style="height:10px;"></div>
                                        <table>
                                            <tr>
                                                <td>&nbsp;&nbsp;按用户号：</td>
                                                <td><dx:ASPxTextBox  ID="tab1YongHuH1" ClientInstanceName="tab1YongHuH1" runat="server" Width="99%" Text="">
                                                    <ClientSideEvents KeyPress="function(s,e){var key = event.keyCode;
                                        if( key==13){goto1();}}" />
                                                    </dx:ASPxTextBox></td>
                                                <td><dx:ASPxButton ID="ASPxButton18" runat="server" Width="96%" Text="定位" UseSubmitBehavior="false" AutoPostBack="false">
                                                    <ClientSideEvents Click="function(s,e){goto1();}" />
                                                    </dx:ASPxButton></td>
                                                <td>&nbsp;&nbsp;共有0条记录</td>
                                            </tr>
                                        </table>
                                        <div style="height:10px;"></div>
                                        <dx:ASPxGridView ID="gvList1" ClientInstanceName="gvList1" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1" Width="100%">
                                            <Columns>
                                                <dx:GridViewDataTextColumn Width="10%" CellStyle-HorizontalAlign="Center">
                                                    <DataItemTemplate>
                                                        <dx:ASPxCheckBox ID="cb" runat="server"></dx:ASPxCheckBox>
                                                        <asp:HiddenField ID="hfShuiBiaoBH" runat="server" Value='<%#Eval("S_YONGHUH") %>' />
                                                    </DataItemTemplate>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="15%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="40%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_KAIZHANGJE" Caption="金额" Width="15%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_Y" Caption="年" Width="15%" CellStyle-HorizontalAlign="Center">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="I_M" Caption="月" Width="15%" CellStyle-HorizontalAlign="Center">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <Settings  VerticalScrollableHeight="200"/>
                                        </dx:ASPxGridView>
                                        <table style="width:100%">
                                            <tr>
                                                <td>
                                                    起始一般缴款书号码：
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                        <dx:TabPage Text="补收">
                            <ContentCollection>
                                <dx:ContentControl>
                                    <div style="float:left;width:34%">
                                        <div style="height:20px"></div>
                                        <table style="width:100%">
                                            <tr>
                                                <td class="wtd">&nbsp;&nbsp;水量年月：</td>
                                                <td style="width:30%">
                                                    <dx:ASPxTextBox ID="txtYM2" ClientInstanceName="txtYM2" runat="server" Width="99%" Text="">
                                                        <ClientSideEvents KeyUp="function(s,e){inputNum(s);OnKeyNext(tab2btnSearch);}"/>
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td>
                                                    &nbsp;<dx:ASPxButton ID="tab2btnSearch" ClientInstanceName="tab2btnSearch" runat="server" Width="70" Text="查询" UseSubmitBehavior="false" OnClick="tab2btnSearch_Click"></dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <div style="height:40px"></div>
                                        <fieldset>
                                            <legend>选中打印</legend>
                                            <table style="width:100%">
                                                <tr>
                                                    <td style="padding-left:10px"><dx:ASPxRadioButton ID="ASPxRadioButton13" runat="server" Text="选" GroupName="cb2"></dx:ASPxRadioButton>
                                                    </td>
                                                    <td>
                                                         <dx:ASPxTextBox ID="ASPxTextBox17" runat="server" Width="99%" ></dx:ASPxTextBox>
                                                    </td>
                                                    <td colspan="3">
                                                        &nbsp;到最后
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width:30px;padding-left:10px"><dx:ASPxRadioButton ID="ASPxRadioButton14" runat="server" Text="从" GroupName="cb2"></dx:ASPxRadioButton>
                                                    </td>
                                                    <td>
                                                         <dx:ASPxTextBox ID="ASPxTextBox18" runat="server" Width="99%" ></dx:ASPxTextBox>
                                                    </td>
                                                    <td class="wtd">
                                                        &nbsp;选&nbsp;
                                                    </td>
                                                    <td style="width:70px">
                                                        <dx:ASPxTextBox ID="ASPxTextBox19" runat="server" Width="99%" ></dx:ASPxTextBox>
                                                    </td>
                                                    <td>
                                                        张
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="5">
                                                        <table style="width:100%">
                                                            <tr>
                                                                <td style="width:33%;text-align:center"><dx:ASPxButton ID="ASPxButton27" runat="server" Width="96%" Text="全部选中" UseSubmitBehavior="false"></dx:ASPxButton></td>
                                                                <td style="width:33%;text-align:center"><dx:ASPxButton ID="ASPxButton28" runat="server" Width="96%" Text="全部取消" UseSubmitBehavior="false"></dx:ASPxButton></td>
                                                                <td style="text-align:center"><dx:ASPxButton ID="ASPxButton29" runat="server" Width="96%" Text="条件选中" UseSubmitBehavior="false"></dx:ASPxButton></td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                        <div style="height:40px"></div>
                                        <table style="width:100%">
                                            <tr>
                                                <td style="width:66%;text-align:center"><dx:ASPxButton ID="ASPxButton30" runat="server" Width="96%" Text="打印一般缴款书" UseSubmitBehavior="false"></dx:ASPxButton></td>
                                                <td style="text-align:center"><dx:ASPxButton ID="ASPxButton31" runat="server" Width="96%" Text="预览" UseSubmitBehavior="false"></dx:ASPxButton></td>
                                            </tr>
                                            <tr style="height:5px"><td colspan="2"></td></tr>
                                        </table>
                                    </div>
                                    <div style="float:left;width:2%">&nbsp;</div>
                                    <div style="float:left;width:64%">
                                        <div style="height:10px;"></div>
                                        <table>
                                            <tr>
                                                <td>&nbsp;&nbsp;按用户号：</td>
                                                <td><dx:ASPxTextBox ID="tab2YongHuH1" ClientInstanceName="tab2YongHuH1" runat="server" Width="99%" Text="">
                                                    <ClientSideEvents KeyPress="function(s,e){var key = event.keyCode;
                                        if( key==13){goto2();}}" />
                                                    </dx:ASPxTextBox></td>
                                                <td><dx:ASPxButton ID="ASPxButton32" runat="server" Width="96%" Text="定位" AutoPostBack="false">
                                                    <ClientSideEvents  Click="function(s,e){goto2();}"/>
                                                    </dx:ASPxButton></td>
                                                <td>&nbsp;&nbsp;共有0条记录</td>
                                            </tr>
                                        </table>
                                        <div style="height:10px;"></div>
                                        <dx:ASPxGridView ID="gvList2" ClientInstanceName="gvList2" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Theme="Aqua1" Width="100%">
                                            <Columns>
                                                <dx:GridViewDataTextColumn Width="10%" CellStyle-HorizontalAlign="Center">
                                                    <DataItemTemplate>
                                                        <dx:ASPxCheckBox ID="cb" runat="server"></dx:ASPxCheckBox>
                                                        <asp:HiddenField ID="hfShuiBiaoBH" runat="server" Value='<%#Eval("S_YONGHUH") %>' />
                                                    </DataItemTemplate>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="15%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="55%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="N_JINE" Caption="金额" Width="15%">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn FieldName="S_BUSHOURQ" Caption="补收日期" Width="15%">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <Settings  VerticalScrollableHeight="200"/>
                                        </dx:ASPxGridView>
                                        <table style="width:100%">
                                            <tr>
                                                <td>
                                                    起始一般缴款书号码：
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </dx:ContentControl>
                            </ContentCollection>
                        </dx:TabPage>
                    </TabPages>
                </dx:ASPxPageControl>
                <table>
                    <tr>
                        <td>
                            打印日期：
                        </td>
                        <td>
                            <dx:ASPxDateEdit ID="ASPxDateEdit1" runat="server"  Date="2016-11-09"></dx:ASPxDateEdit>
                        </td>
                    </tr>
                </table>
                
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>


